package cn.jane.rpc.netty.transport.command;

/**
 * 响应码的枚举类
 */
public enum ResponseCode {

    SUCCESS(0),
    UNKNOWN_ERROR(-1),
    NO_PROVIDER(-2);

    private final int code;

    ResponseCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
